package redis

import (
	"fmt"
	"github.com/garyburd/redigo/redis"
)

func Test() {
	c, err := redis.Dial("tcp", "localhost:6379")
	if err != nil {
		fmt.Println("Connect to redis error", err)
		return
	}
	defer c.Close()
	c.Do("set", "key1", "value1")
	str, err := redis.String(c.Do("get", "key1"))
	fmt.Println(str, err)
}
